package com.xdtech.play.model;

import java.io.Serializable;
import java.util.Date;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import com.xdtech.core.model.BaseModel;

/**
 * 
 * @author max.zheng
 * @create 2016-05-08 23:42:57
 * @since 1.0
 * @see 
 */
@Entity
@Table(name="PLAY_TRADE_RECORD")
public class PlayTradeRecord extends BaseModel implements Serializable{
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "ID")
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;
	@Column(name="ACCOUNT")
	private Integer account;
	@Column(name="TRADE_TYPE")
	private String tradeType;
	@Column(name="PAY_TYPE")
	private String payType;
	@Column(name="OPERATOR")
	private String operator;
	@Column(name="OPERATE_TIME")
	private String operateTime;
	@Column(name="ACCOUNT_BLANCE")
	private Integer accountBlance;

	//多对一
	@ManyToOne
    @JoinColumn(name = "PLAY_MEMBER_ID")
    PlayMember playMember;

	public void setId(Long id) {
		this.id = id;
	}
	public Long getId() {
		return id;
	}
	public void setAccount(Integer account) {
		this.account = account;
	}
	public Integer getAccount() {
		return account;
	}
	public void setTradeType(String tradeType) {
		this.tradeType = tradeType;
	}
	public String getTradeType() {
		return tradeType;
	}
	public void setPayType(String payType) {
		this.payType = payType;
	}
	public String getPayType() {
		return payType;
	}
	public PlayMember getPlayMember() {
		return playMember;
	}
	public void setPlayMember(PlayMember playMember) {
		this.playMember = playMember;
	}
	public String getOperator()
	{
		return operator;
	}
	public void setOperator(String operator)
	{
		this.operator = operator;
	}
	public String getOperateTime()
	{
		return operateTime;
	}
	public void setOperateTime(String operateTime)
	{
		this.operateTime = operateTime;
	}
	public Integer getAccountBlance()
	{
		return accountBlance;
	}
	public void setAccountBlance(Integer accountBlance)
	{
		this.accountBlance = accountBlance;
	}
	

	
}
